package xyz.event;

import org.springframework.context.ApplicationEvent;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Service;

@Service
public class EmailService {
	
	
	@EventListener
	public void getUserLoginEvent(UserLoginEvent event) {
		 System.out.println("邮件服务接到通知，给 " + event.getSource() + " 发送邮件...");// <3>
	}
}
